# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=phrase-pinyin-data
pkgver=0.15.0
pkgrel=1
pkgdesc="Pinyin Data for Phrases"
arch=('any')
license=('MIT')
url="https://github.com/mozillazg/phrase-pinyin-data"
depends=()
source=("https://github.com/mozillazg/phrase-pinyin-data/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('348309f9c91ef250fdce1ceab0e89979c6915fae98280ed269e33cfe1873adf432b1587e1d2f95ba699c97a8c3f2e947f6ed4c908113424bd4c5e2d86385bce1')

package() {
  cd $pkgname-$pkgver
  install -Dm644 pinyin.txt -t "$pkgdir"/usr/share/$pkgname/
  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
